<include file="../Public/header.html" />

<link href="__PUBLIC__/Css/brand.css" rel="stylesheet" type="text/css">

<script src="__PUBLIC__/Js/flashSlider/photo-switch.js" type="text/javascript"></script>

<script type="text/javascript">
 	$(document).ready(function(){
 		 //$("#b_flash").flashSlider();
 		$('#b_box').switchboxaction({Time:5000,SwitchTime:3000,switchindex:'#switch_bar',onclass:'switch_bar_on',SwitchMode:'Hover',AutoStart:true,SwitchEffect:'fadeOut'});
 	});
 	
 	function goPage(pno){
 		$.kajax({      
			url:"{:U('Product://Brand/ajxSearch')}",      
			type:'post', //数据发送方式  
			data:{bscode:$('#searchbform').find("#bscode").val(),pno:pno} ,    
			//async: true ,//同步方式     
			success: function(html){ 
				$('#brand_list_area').html(html);
			}
		});
 	}
</script>
<div id="main">
		<php>
			$TOP_NAV_BOX_PARAM[]=array('url'=>U('Product://Brand/index'),'desc'=>$_ARY_HRADER_NAV_DICT['BRAND']);
		</php>
		<include file="../Public/top_nav_box.html" />

	<div id="banner_box">
		<div id="b_flash">
	    		<ul id="b_box">
	    		<!-- current-li -->
	    		<volist id="vo" name="showBrands">
		            <li class="switch_item" style="display: list-item;">
		            <a title="{$vo['title']}" href="{:U('Product://Brand/detail',array('bid'=>$vo['id']))}">
		            <img alt="{$vo['title']}" src="{:getPhotoFromThumb($vo['intro_imgpath1'],1000,442)}" width="685px"></a></li>
		        </volist>
		        </ul>
		   	 	<ul id="switch_bar">
			   	 	<volist id="vo" name="showBrands">
			            <li class="switch_bar <php>if($i==1){</php>switch_bar_on<php>}</php>" ><a href="{:U('Product://Brand/detail',array('bid'=>$vo['id']))}">{$vo['title']}</a></li>
			        </volist>
		        </ul>
		</div>
	</div>
	
	<form id='searchbform'>
			<input type="hidden" id='bscode' 	value='all'>
	</form>
	
	<div id="list_top" class="list_top">
		<ul id="top_bar">
			<li class="top_bar top_bar_on" rel="all" 
					onclick="k_changeGroupStyle('list_top',' ul > li','all','top_bar_on');
							$('#searchbform').find('#bscode').val('all');goPage(1);">全部</li>
			<php>
				$_tmp_catapartner 	= service('Dict')->getAllDictByCode('partner',' `id_path` ,`order` ');
				foreach($_tmp_catapartner as $vo1){
	    	</php>
			<li class="top_bar" rel="{$vo1['code']}"
					onclick="k_changeGroupStyle('list_top',' ul > li','{$vo1['code']}','top_bar_on');
							$('#searchbform').find('#bscode').val('{$vo1['code']}');goPage(1);">{$vo1['desc']}</li>
			<php>}</php>
		</ul>
	</div>
	<div class="clear"></div>
	<div id="brand_list_area">
		<include file="../Product/Tpl/default/Brand/brand_list_box.html" />
	</div>
	<div id="clear"></div>
	
</div>



<include file="../Public/footer.html" />